import {MockMethod} from 'vite-plugin-mock'
import {baseApi} from '../../config'

export default [
    {
        url: `${baseApi}/system/dict/type/add`,
        params: {
            "dictId": 0,
            "dictName": "上线状态",
            "dictType": "status",
            "status": 1,
            "remark": ""
        },
        method: 'POST',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/dict/type/delete`,
        params: {"dictIds": [50]},
        method: 'delete',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/dict/type/get`,
        params: {dictId: 35},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "dictType": {
                        "dictId": 35,
                        "dictName": "工作流紧急状态",
                        "dictType": "flow_level",
                        "status": 1,
                        "createdBy": 31,
                        "updatedBy": 31,
                        "remark": "工作流紧急状态",
                        "createdAt": "2024-08-28 22:26:06",
                        "updatedAt": "2024-08-28 23:29:16"
                    }
                }
            }
        }
    },
    {
        url: `${baseApi}/system/dict/type/edit`,
        params: {
            "dictId": 35,
            "dictName": "工作流紧急状态",
            "dictType": "flow_level",
            "status": 1,
            "createdBy": 31,
            "updatedBy": 31,
            "remark": "工作流紧急状态",
            "createdAt": "2024-08-28 22:26:06",
            "updatedAt": "2024-08-28 23:29:16"
        },
        method: 'put',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/dict/type/list`,
        //params:{pageNum:1,pageSize:10,dictName:'',dictType:'',status:''},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "dictTypeList": [
                        {
                            "dictId": 1,
                            "dictName": "用户性别",
                            "dictType": "sys_user_sex",
                            "status": 1,
                            "remark": "用于选择用户性别",
                            "createdAt": "2024-08-28 22:26:05"
                        },
                        {
                            "dictId": 2,
                            "dictName": "分类类型",
                            "dictType": "cms_category_type",
                            "status": 1,
                            "remark": "文章分类类型",
                            "createdAt": "2024-08-28 22:26:05"
                        },
                        {
                            "dictId": 3,
                            "dictName": "任务状态",
                            "dictType": "sys_job_status",
                            "status": 1,
                            "remark": "任务状态列表",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 13,
                            "dictName": "任务分组",
                            "dictType": "sys_job_group",
                            "status": 1,
                            "remark": "任务分组",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 14,
                            "dictName": "管理员登录状态",
                            "dictType": "admin_login_status",
                            "status": 1,
                            "remark": "管理员登录状态",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 15,
                            "dictName": "操作日志状态",
                            "dictType": "sys_oper_log_status",
                            "status": 1,
                            "remark": "操作日志状态",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 16,
                            "dictName": "任务策略",
                            "dictType": "sys_job_policy",
                            "status": 1,
                            "remark": "任务策略",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 17,
                            "dictName": "菜单状态",
                            "dictType": "sys_show_hide",
                            "status": 1,
                            "remark": "菜单状态",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 18,
                            "dictName": "系统开关",
                            "dictType": "sys_normal_disable",
                            "status": 1,
                            "remark": "系统开关",
                            "createdAt": "2024-08-28 22:26:06"
                        },
                        {
                            "dictId": 24,
                            "dictName": "系统内置",
                            "dictType": "sys_yes_no",
                            "status": 1,
                            "remark": "系统内置",
                            "createdAt": "2024-08-28 22:26:06"
                        }
                    ],
                    "currentPage": 1,
                    "total": 24
                }
            }
        }
    },
    {
        url: `${baseApi}/system/dict/type/optionSelect`,
        method: 'get',
        response: () => {
            return {}
        }
    },
] as MockMethod[]
